package com.meitutest.autoscript.camera;

import android.os.Bundle;
import android.support.test.InstrumentationRegistry;
import android.support.test.uiautomator.UiDevice;
import android.text.TextUtils;

import org.junit.Test;

/**
 * Created by CrystalChen on 2017/12/15.
 */

public class Gaotong_FocusTest {
    @Test
    public void test01() {
        UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
        GaoTongCameraUtils gaoTongCameraUtils = new GaoTongCameraUtils(uiDevice);
        Bundle b = InstrumentationRegistry.getArguments();
        String count = b.getString("count");
        if (!TextUtils.isEmpty(count)) {
            gaoTongCameraUtils.focusStressTest(Integer.parseInt(count));
        } else {
            gaoTongCameraUtils.focusStressTest(100);
        }
    }
}
